Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-348

Creating node with path ending in "/" with sequence flag set

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.1.0, 3.1.1
    • 3.2.0
    • c client
    • None
    • Reviewed

    Description

      In 3.0.1, I could create a sequence node like this:
      /nodes/0000001
      like this:
      string path = "/nodes/";
      string value = "data";
      int rc = zoo_acreate(zh, path.c_str(), value.c_str(), value.length(), &ZOO_OPEN_ACL_UNSAFE, ZOO_EPHEMERAL | ZOO_SEQUENCE, &czoo_created, &where);

      In 3.1.1, this fails with error -8 (ZBADARGUMENTS).

      Adding something after the "/" in the path makes the code work fine:
      string path = "/nodes/n";

      I assume something is checking if the path ends in "/" but not checking the sequence flag.

      Attachments

        Activity

          People

            phunt Patrick D. Hunt
            jterrace Jeff Terrace
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: